package com.woniu.movie.service.impl;

import com.woniu.common.entity.Movie;
import com.woniu.common.entity.vo.MovieVo;
import com.woniu.movie.mapper.MovieMapper;
import com.woniu.movie.service.IMovieService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mane
 * @since 2025-03-29
 */
@Service
public class MovieServiceImpl extends ServiceImpl<MovieMapper, Movie> implements IMovieService {

    @Autowired
    private MovieMapper movieMapper;

    @Override
    public List<MovieVo> listMovieVo() {
        List<MovieVo> movieVoList = movieMapper.listMovieVo();
        return movieVoList;
    }
}
